// Tailwind CSS 配置 - 简约设计
tailwind.config = {
    theme: {
        extend: {
            colors: {
                primary: {
                    50: '#eff6ff',
                    100: '#dbeafe',
                    200: '#bfdbfe',
                    300: '#93c5fd',
                    400: '#60a5fa',
                    500: '#3b82f6',
                    600: '#2563eb',
                    700: '#1d4ed8',
                    800: '#1e40af',
                    900: '#1e3a8a',
                    950: '#172554'
                },
                secondary: {
                    50: '#f8fafc',
                    100: '#f1f5f9',
                    200: '#e2e8f0',
                    300: '#cbd5e1',
                    400: '#94a3b8',
                    500: '#64748b',
                    600: '#475569',
                    700: '#334155',
                    800: '#1e293b',
                    900: '#0f172a',
                    950: '#020617'
                }
            },
            borderRadius: {
                'none': '0px',
                'sm': '2px',
                DEFAULT: '4px',
                'md': '6px',
                'lg': '8px',
                'xl': '12px',
                '2xl': '16px',
                'full': '9999px',
                'button': '6px'
            },
            fontFamily: {
                'sans': ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif']
            },
            animation: {
                'fade-in': 'fadeIn 0.3s ease-out'
            },
            boxShadow: {
                'simple': '0 1px 3px rgba(0, 0, 0, 0.1)',
                'medium': '0 4px 6px -1px rgba(0, 0, 0, 0.1)',
                'large': '0 10px 15px -3px rgba(0, 0, 0, 0.1)'
            }
        }
    }
};

// 全局配置 - 简约主题
const CONFIG = {
    // API 配置
    API_BASE_URL: 'http://localhost:3000/api',
    
    // 分页配置
    PAGE_SIZE: 10,
    
    // 学分配置
    CREDIT_WARNING_THRESHOLD: 4.0,
    CREDIT_CRITICAL_THRESHOLD: 2.0,
    
    // 图表配置 - 简约色彩
    CHART_COLORS: {
        primary: '#2563eb',
        secondary: '#64748b',
        success: '#10b981',
        warning: '#f59e0b',
        danger: '#ef4444',
        info: '#06b6d4',
        gray: '#6b7280',
        lightGray: '#9ca3af',
        darkGray: '#374151'
    },
    
    // 主题配置 - 简约
    THEME: {
        primary: '#2563eb',
        secondary: '#64748b',
        success: '#10b981',
        warning: '#f59e0b',
        danger: '#ef4444',
        background: '#f8fafc',
        surface: '#ffffff',
        border: '#e5e7eb',
        text: '#374151',
        textLight: '#6b7280'
    },
    
    // 动画配置 - 简约
    ANIMATIONS: {
        duration: {
            fast: '0.15s',
            normal: '0.2s',
            slow: '0.3s'
        },
        easing: {
            smooth: 'ease',
            bounce: 'ease-out'
        }
    },
    
    // 响应式断点
    BREAKPOINTS: {
        sm: '640px',
        md: '768px',
        lg: '1024px',
        xl: '1280px',
        '2xl': '1536px'
    }
};

// 导出配置
if (typeof module !== 'undefined' && module.exports) {
    module.exports = CONFIG;
} 